#ifndef CLIENTMANAGER_H
#define CLIENTMANAGER_H

#include "Singleton.h"
#include "ClientSocket.h"

#include <D3DX10.h>
#include <string>

class ClientManager : public Uncopyable
{
	ClientManager();
	friend class Singleton<ClientManager>;
public:
	const D3DXVECTOR3& GetPos() const;
	void SetPos(const D3DXVECTOR3& pos);
	const D3DXVECTOR3& GetVel() const;
	void SetVel(const D3DXVECTOR3& vel);

	void Open(const std::string& host, int port);
	ClientSocket& GetSocket();

	void SetID(int id);
	int GetID() const;

private:
	ClientSocket m_sock;
	int m_id; // change to string for a name
};

typedef Singleton<ClientManager> TheClientManager;

#endif //CLIENTMANAGER_H